package com.sibu.yx.promotion.common.enums;

import com.sibu.yx.promotion.common.constants.AppConstants;

public interface RedisKey {
    /**
     * 所有key的项目名前缀
     */
    String BASE_PRE_KEY = AppConstants.BASE_REDIS_PRE_KEY;


    /**
     * 时间为-1，redis key 永不过期
     */
    long NEVER_EXPIRED = -1L;

    String KEY_SPLIT = ":";

    String get(Object value);

    String getNoBase(Object value);

    boolean hasSetExpire();

    long getLiveSecond();

    String getField();

    String getPreKey();
}
